package com.augurit.common.syscode.web.form;

import com.augurit.common.base.form.BaseForm;

/**
 * 业务字典Form类
 */
public class SysCodeForm extends BaseForm {
	
	public static final String typePrefix = "type";
	public static final String itemPrefix = "item";
	
	/**
	 * 将SysCodeForm类属性名称转换为SysCodeItem属性名称
	 * @param sysCodeFormPropertyName
	 * @return
	 */
	public static String convertToItemPropertyName(String sysCodeFormPropertyName){
		if(sysCodeFormPropertyName != null && sysCodeFormPropertyName.trim().length() > 0){
			return sysCodeFormPropertyName.replace(itemPrefix, "").toLowerCase();
		}else
			return "";
	}
	
	/**
	 * 将SysCodeForm类属性名称转换为SysCodeType属性名称
	 * @param sysCodeFormPropertyName
	 * @return
	 */
	public static String convertToTypePropertyName(String sysCodeFormPropertyName){
		if(sysCodeFormPropertyName != null && sysCodeFormPropertyName.trim().length() > 0){
			return sysCodeFormPropertyName.replace(typePrefix, "").toLowerCase();
		}else
			return "";
	}
	
	//属性
	private Long typeId;		//业务字典类型主键
	private String typeCode;	//业务字典类型编号
	private String typeName;	//业务字典类型名称
	private String typeGrade;	//业务字典类型级别
	private String typeMemo;	//业务字典类型备注
	
	private Long itemId;		//业务字典项主键
	private String itemCode;	//业务字典项编号
	private String itemName;	//业务字典项名称
	private Integer itemStatus;	//业务字典项状态，0表示禁用，1表示启用
	private Integer itemSortno;	//排序字段，0-999
	private String itemMemo;	//业务字典项备注
	
	
	public Long getTypeId() {
		return typeId;
	}
	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}
	public String getTypeCode() {
		return typeCode;
	}
	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public String getTypeGrade() {
		return typeGrade;
	}
	public void setTypeGrade(String typeGrade) {
		this.typeGrade = typeGrade;
	}
	public String getTypeMemo() {
		return typeMemo;
	}
	public void setTypeMemo(String typeMemo) {
		this.typeMemo = typeMemo;
	}
	public Long getItemId() {
		return itemId;
	}
	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}
	public String getItemCode() {
		return itemCode;
	}
	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}
	public String getItemName() {
		return itemName;
	}
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	public Integer getItemStatus() {
		return itemStatus;
	}
	public void setItemStatus(Integer itemStatus) {
		this.itemStatus = itemStatus;
	}
	public Integer getItemSortno() {
		return itemSortno;
	}
	public void setItemSortno(Integer itemSortno) {
		this.itemSortno = itemSortno;
	}
	public String getItemMemo() {
		return itemMemo;
	}
	public void setItemMemo(String itemMemo) {
		this.itemMemo = itemMemo;
	}
	
}
